﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="update_psw.aspx.cs" Inherits="update_psw" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">
        .style1
        {
            width: 100%;
            table table-bordered
        }
        .style2
        {
            text-align: right;
            width: 38%;
        }
        .style3
        {
            width: 38%;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div style=" width:50%; margin:50px auto; height: 183px;">
    <table class="style1" >
        <tr>
            <td colspan="2" style="text-align: center">
                <asp:Label ID="Label1" runat="server" 
                    style="font-size: xx-large; font-weight: 700" Text="密码修改"></asp:Label>
                <br />
                <br />
            </td>
        </tr>
        <tr>
            <td class="style2">
                <asp:Label ID="Label2" runat="server" Text="原密码："></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="style2">
                <asp:Label ID="Label3" runat="server" Text="新密码："></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="style2">
                <asp:Label ID="Label4" runat="server" Text="确认密码："></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="TextBox3" runat="server"></asp:TextBox>
                <asp:CompareValidator ID="CompareValidator1" runat="server" 
                    ControlToCompare="TextBox2" ControlToValidate="TextBox3" 
                    ErrorMessage="两次密码不一致" style="color: #FF0000"></asp:CompareValidator>
            </td>
        </tr>
        <tr>
            <td class="style3" style="text-align: right">
                <br />
                <asp:Button ID="Button1" class="btn btn-primary" runat="server" Text="确定" 
                    onclick="Button1_Click"  />
            </td>
            <td>
                <br />
&nbsp;&nbsp;&nbsp;&nbsp;
                <asp:Button ID="Button2" class="btn btn-primary" runat="server" Text="取消" />
            </td>
        </tr>
    </table>
    </div>
</asp:Content>

